package com.altersoftware.hotel.entity;

import java.util.Date;

public class PermissionDO {

    /** 权限id */
    private long id;
    /** 权限名 */
    private String name;
    /** 权限归属 */
    private String resource;
    /** 创建时间 */
    private Date createTime;
    /** 修改时间 */
    private Date modifyTime;


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    @Override
    public String toString() {
        return "PermissionDO{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", resource='" + resource + '\'' +
            ", createTime=" + createTime +
            ", modifyTime=" + modifyTime +
            '}';
    }
}
